From: Ray Strode Date: Mon, 18 Feb 2013 01:41:40 +0000 (-0500) Subject: loginDialog: move prompt hiding code to hidePrompt X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4723 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=963e808d98c01289fb9dbeb2050c1e5ba6627eaa;p=gnome-shell.git loginDialog: move prompt hiding code to hidePrompt The sessionList and the prompt hint are all really part of the prompt, so we should have the code that hides those things in hidePrompt instead of in showUserList. This commit does that. https://bugzilla.gnome.org/show_bug.cgi?id=694062 --- diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index 7ed4ce532..79d88b838 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -850,6 +850,9 @@ const LoginDialog = new Lang.Class({ this._updateSensitivity(true); this._promptEntry.set_text(''); + this._sessionList.close(); + this._promptLoginHint.hide(); + this.clearButtons(); this._workSpinner = null; this._signInButton = null; @@ -1075,8 +1078,6 @@ const LoginDialog = new Lang.Class({ _showUserList: function() { this._hidePrompt(); - this._sessionList.close(); - this._promptLoginHint.hide(); this._userList.actor.show(); this._userList.actor.opacity = 255; this._notListedButton.show();